package homework4.action_e;

import java.io.*;

/**
 * @author CoderXshuai
 */
public class Test {
    public static void main(String[] args) throws IOException {
        File file = new File("123.txt");
        if (!file.exists()) {
            file.createNewFile();
        }

        File file1 = file;
        FileInputStream stream = new FileInputStream(file1);
        BufferedReader reader = new BufferedReader(new InputStreamReader(stream));
        String s = "";
        while ((s = reader.readLine()) != null) {
            System.out.println(s);
        }
    }
}
